﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.Exceptions
{
    public class BusinessException : Exception
    {
        public string Code { get; set; }

        public BusinessException(string code, string message) : base(message)
        {
            Code = code;
        }

        public BusinessException(string message)
            : base(message)
        {
            Code = "Error";
        }
    }
}
